Sets how many rows of the screen the 3D view covers, counted from the top (8 to 160). The rows below it are left black, for a HUD of sprites. It starts at 160, the whole screen.
Game Boy: not available
Game Boy Color: not available
On other consoles this differs: see Side by side and How the consoles differ.
view3d_height(rows)| Name | Type |
|---|---|
rows | int |
Nothing.
Sets how many rows of the screen the 3D view covers, counted from the top. It is a number from 8 to 160 (an odd number is rounded down to an even one), and it starts at 160, the whole screen.
The rows below the view are left black, so you can put a HUD there: a health bar, an ammo count, a face, drawn as ordinary pictures. The view keeps its proportions: a shorter view shows less of the top and bottom of the walls, it is not squashed. A shorter view is also faster, because there are fewer rows to draw.
Changing it redraws the whole view on the next frame.
view3d_start(ts_doc_walls);
// leave the bottom 32 rows of the screen for a HUD
view3d_height(128);The view stops 32 rows above the bottom of the screen.
An odd number is rounded down to an even one. The view keeps its proportions: a shorter view shows less of the top and bottom of the walls, it is not squashed. A shorter view is also faster, because there are fewer rows to draw. Changing it redraws the whole view on the next frame.